/*  Copyright 2008 Rene Weiskircher 

    This file is part of SUPA.

    SUPA is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    SUPA is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with SUPA.  If not, see <http://www.gnu.org/licenses/>.
 */
package supa;
import java.awt.BorderLayout;

import java.awt.FlowLayout;

import javax.swing.WindowConstants;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JTextField;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ProgressDisplay extends javax.swing.JPanel {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel processorPanel;
	private JPanel progressBarPanel;
	private JProgressBar progressBar;
	private JTextField process1;

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	 * @param args not needed
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new ProgressDisplay());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}

	/**
	 * Constructor calls super class constructor and initializes the GUI
	 */
	public ProgressDisplay() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			BorderLayout thisLayout = new BorderLayout();
			this.setLayout(thisLayout);
			this.setPreferredSize(new java.awt.Dimension(400, 214));
			{
				processorPanel = new JPanel();
				FlowLayout processorPanelLayout = new FlowLayout();
				this.add(processorPanel, BorderLayout.NORTH);
				processorPanel.setPreferredSize(new java.awt.Dimension(400, 91));
				processorPanel.setLayout(processorPanelLayout);
				{
					process1 = new JTextField();
					processorPanel.add(process1);
					process1.setText("Proc1");
				}
			}
			{
				progressBarPanel = new JPanel();
				BorderLayout progressBarPanelLayout = new BorderLayout();
				progressBarPanel.setLayout(progressBarPanelLayout);
				this.add(progressBarPanel, BorderLayout.SOUTH);
				progressBarPanel.setPreferredSize(new java.awt.Dimension(400,30));
				{
					progressBar = new JProgressBar();
					progressBarPanel.add(progressBar, BorderLayout.CENTER);
					progressBar.setPreferredSize(new java.awt.Dimension(400, 20));
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
